# -*- coding: utf-8 -*-
#
#
# client/ contains functions specific to client-side operation.
# see client.nfo for more information.
#
#
#
import numpy as n
from copy import copy,deepcopy
import wx,time,os,Queue,sys,gc
import shared.datatransfer as dt
import shared.worldsettings as ws
import shared.scanvariables as sv
import shared.createtree as createtree
import math
import math as m


res=wx.__version__.split('.')
ver=int(res[1])
if ver < 8: raise "WX version is %s. Version >=2.8 is required."%wx.__version__
else: print "WX version %s detected."%wx.__version__

# Matplot
import matplotlib
matplotlib.interactive(False)
matplotlib.use('WXAgg')
from matplotlib import rcParams
import matplotlib.cm as cm
from matplotlib.backends.backend_wxagg import Toolbar, FigureCanvasWxAgg
from matplotlib.backends.backend_wxagg import NavigationToolbar2WxAgg
matplotlib.backends.backend_wxagg._use_accelerator(False)
from matplotlib.figure import Figure
import matplotlib.numerix as nx
from matplotlib.widgets import RectangleSelector
from matplotlib.backends.backend_wx import _load_bitmap
from matplotlib.numerix.mlab import rand